package Lecture7;

public class maxDelitel {

	public static void main(String[] args) 
	{
		int a = 15;
		int b = 10;
      
		System.out.println(maxDelite(a, b));
	}

	public static int maxDelite( int a, int b)
	{
		if( a > b)
		{
			return maxDelite(a - b, b);
		}
		else
			if( b > a)
			{
				return maxDelite(a, b - a );
			}
			else
			{
				return a;
			}
	}
	
	
	
}
